<template>
  <section class="art_edit">
    <h2>修改文章</h2>
    <Editor :artinfo="artinfo" :isedit="1"></Editor>
    <div>
    </div>
  </section>
</template>

<script>
import Editor from '~/components/article/Editor.vue'

export default {
  async asyncData({$axios,params}){
    // let result = await $axios.$get('/art/search',{params:{id:params.artinfo.id}})
    return {artinfo:params.artinfo}
    // return{artinfo:result.msg[0]}
  },
  data(){
    return{
      // artinfo:this.$route.params.artinfo
    }
  },
  created(){

  },
  methods:{

  },
  components:{
    Editor
  },
}
</script>

<style lang="scss" scoped>

</style>